package com.clstu.extends_.exercise;

public class NotePad extends  Computer{
    public String color;

    public NotePad(String cpu, int memeroy, int disk, String color) {//IDEA构造函数自动super（参数表）调用父类函数的构造器
        super(cpu, memeroy, disk);
        this.color = color;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public void showInfo(){
        System.out.println(getInfo()+" color:  "+color);
    }
}
